﻿using System;
using System.Linq;
using NDBGen.Descriptors.Columns;

namespace NDBGen.Plugins.Descriptors.Columns
{
    public abstract class DotNetColumnCodeGeneratorBase : DotNetCodeGeneratorBase<IColumnDescriptor>, IDotNetColumnCodeGenerator
    {
        protected virtual Object[] GenerateColumnAttributeProperties()
        {
            return new Object[0];
        }

        protected override Object[] GenerateCustomAttributes()
        {            
            return new Object[0];
        }

        public override Object[] GetAttributes()
        {
            return this.GenerateCustomAttributes();
        }

        Object[] IDotNetColumnCodeGenerator.GenerateColumnAttributeProperties()
        {
            return this.GenerateColumnAttributeProperties();
        }
    }
}